package o;

import o.aea.a;

final class agx implements aea {
    private long ʻ;
    private final int ʽ;
    private final int ˊ;
    private final int ˋ;
    private final int ˎ;
    private final int ˏ;
    private final int ॱ;
    private long ᐝ;

    public agx(int i, int i2, int i3, int i4, int i5, int i6) {
        this.ˋ = i;
        this.ॱ = i2;
        this.ˎ = i3;
        this.ˏ = i4;
        this.ˊ = i5;
        this.ʽ = i6;
    }

    public void ॱ(long j, long j2) {
        this.ᐝ = j;
        this.ʻ = j2;
    }

    public long ˋ() {
        return ˎ() ? this.ᐝ + this.ʻ : -1;
    }

    public boolean ˎ() {
        return (this.ᐝ == 0 || this.ʻ == 0) ? false : true;
    }

    public boolean ˊ() {
        return true;
    }

    public long g_() {
        return ((this.ʻ / ((long) this.ˏ)) * 1000000) / ((long) this.ॱ);
    }

    public a ˏ(long j) {
        long ˎ = anr.ˎ((((((long) this.ˎ) * j) / 1000000) / ((long) this.ˏ)) * ((long) this.ˏ), 0, this.ʻ - ((long) this.ˏ));
        long j2 = this.ᐝ + ˎ;
        long ˋ = ˋ(j2);
        aeh o_aeh = new aeh(ˋ, j2);
        if (ˋ >= j || ˎ == this.ʻ - ((long) this.ˏ)) {
            return new a(o_aeh);
        }
        ˎ = ((long) this.ˏ) + j2;
        return new a(o_aeh, new aeh(ˋ(ˎ), ˎ));
    }

    public long ˋ(long j) {
        return (Math.max(0, j - this.ᐝ) * 1000000) / ((long) this.ˎ);
    }

    public int ॱ() {
        return this.ˏ;
    }

    public int ʽ() {
        return (this.ॱ * this.ˊ) * this.ˋ;
    }

    public int ʼ() {
        return this.ॱ;
    }

    public int ॱॱ() {
        return this.ˋ;
    }

    public int ᐝ() {
        return this.ʽ;
    }
}
